package com.yuantong.xyerp.core.provider.dao;

import com.yuantong.xyerp.core.api.dto.UserDto;
import com.yuantong.xyerp.core.api.vo.OrganizationVo;
import org.apache.ibatis.annotations.Select;

/**
 * Created by Jianguo.Yin on 2021-07-18.
 */
public interface OrganizationMapper {
    @Select({
            "select id, `name` from t_organization o where o.name = #{organizationName} and o.status = 1"
    })
    OrganizationVo findOrganizationByName(UserDto user);


}
